package com.base.service.CZB.Impl;

import com.base.mapper.czbmapper.GasOilpriceMapper;
import com.base.po.czb_sdk.GasOilprice;
import com.base.po.czb_sdk.GasOilpriceExample;
import com.base.service.CZB.GasOilpriceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("GasOilpriceService")
public class GasOilpriceServiceImpl implements GasOilpriceService {
    @Autowired
    GasOilpriceMapper gasOilpriceMapper;
    @Override
    public int countByExample(GasOilpriceExample example) {
        return gasOilpriceMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(GasOilpriceExample example) {
        return gasOilpriceMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return gasOilpriceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(GasOilprice record) {
        return gasOilpriceMapper.insert(record);
    }

    @Override
    public int insertSelective(GasOilprice record) {
        return gasOilpriceMapper.insertSelective(record);
    }

    @Override
    public List<GasOilprice> selectByExample(GasOilpriceExample example) {
        return gasOilpriceMapper.selectByExample(example);
    }

    @Override
    public GasOilprice selectByPrimaryKey(String id) {
        return gasOilpriceMapper.selectByPrimaryKey(id );
    }

    @Override
    public GasOilprice selectByOilNo(String oilNo, String gasId) {
        return gasOilpriceMapper.selectByOilNo(oilNo, gasId);
    }

    @Override
    public int updateByExampleSelective(GasOilprice record, GasOilpriceExample example) {
        return gasOilpriceMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(GasOilprice record, GasOilpriceExample example) {
        return gasOilpriceMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(GasOilprice record) {
        return gasOilpriceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GasOilprice record) {
        return gasOilpriceMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<GasOilprice> selectByGasId(String czbGasId) {
        return gasOilpriceMapper.selectByGasId(czbGasId);
    }
}
